package com.runa.monitor.platinterface.meter3_0.session;


import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author diandian
 * @Date 2022/11/18 20:37
 */
public class WebSocketPool {

    private static Map<String, SessionProxy> map = new ConcurrentHashMap<>();

    public static SessionProxy getSession(String identity) {
        return map.get(identity);
    }

    public static void removeSession(String identity) {
        map.remove(identity);
    }

    public static void putSession(String identity, SessionProxy session) {
        map.put(identity,session);
    }

}